﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace PCManagerReloaded
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void HubTile_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (sender == _Down)
            {
                NavigationService.Navigate(new Uri("/DownloadsPage.xaml", UriKind.Relative)); 
            }
            else if (sender == _Settings)
            {
                NavigationService.Navigate(new Uri("/SettingsPage.xaml", UriKind.Relative)); 
            }
            else if (sender == _NetworkDrive)
            {
                NavigationService.Navigate(new Uri("/NASPage.xaml", UriKind.Relative)); 
            }
            else if (sender == _Windows)
            {
                NavigationService.Navigate(new Uri("/WindowsPage.xaml", UriKind.Relative));
            }
        }
    }
}